import request from '@/utils/request'

// 查询岗位调整列表
export function listPostChange(query) {
  return request({
    url: '/hrm/postChange/list',
    method: 'get',
    params: query
  })
}

// 查询岗位调整详细
export function getPostChange(id) {
  return request({
    url: '/hrm/postChange/' + id,
    method: 'get'
  })
}

// 新增岗位调整
export function addPostChange(data) {
  return request({
    url: '/hrm/postChange',
    method: 'post',
    data: data
  })
}

// 修改岗位调整
export function updatePostChange(data) {
  return request({
    url: '/hrm/postChange',
    method: 'put',
    data: data
  })
}

// 删除岗位调整
export function delPostChange(id) {
  return request({
    url: '/hrm/postChange/' + id,
    method: 'delete'
  })
}
